<?php
if (!defined('GLOBAL_START')) {
    require __DIR__ . '/../../vendor/autoload.php';
}

$web       = new Workerman\WebServer("http://0.0.0.0:8080");
$web->name = 'Web';
$web->addRoot('www.test.com', __DIR__ . '/static');

if (!defined('GLOBAL_START')) {
    Worker::runAll();
}
